<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/mytag.jspf"%>
<%@ taglib prefix="decorator"
	uri="http://www.opensymphony.com/sitemesh/decorator"%>

<!DOCTYPE html>
<html class="fixed-layout js cssanimations">
<head>
<base href="<%=basePath%>">
<!--  <title><decorator:title default="..." /> - 蓝调社区</title>-->
<title>蓝调社区</title>
<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">
<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" href="assets/css/amazeui.min.css">
<link rel="stylesheet" href="assets/plugins/jqgrid/ui.jqgrid.css">
<link rel="stylesheet" href="assets/plugins/ztree/zTreeStyle.css">
<link rel="stylesheet" href="assets/css/admin.css">
<link rel="stylesheet" href="assets/plugins/jquery-validation/jquery.validate.css">

<!-- js lib start -->
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="assets/js/jquery.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<![endif]-->
<script src="assets/js/amazeui.min.js"></script>
<!-- js lib end -->
<!-- js plugin start -->
<script src="assets/plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="assets/plugins/jqgrid/grid.locale-cn.js"></script>
<script src="assets/plugins/ztree/jquery.ztree.all-3.5.min.js"></script>
<script src="assets/plugins/layer-v1.9.2/layer/layer.js"></script>
<script src="assets/plugins/jquery.form.js"></script>
<script src="assets/plugins/jquery-validation/jquery.validate.js"></script>
<script src="assets/plugins/jquery-validation/messages_zh.js"></script>
<script src="assets/js/common.js"></script>
<script>
    AMUI.plugin('mySelected', AMUI.selected);
</script>
<!-- js plugin end -->
</head>
<body>
<c:set var="userType" value="${sessionScope.user.userType}"/>
<c:if test="${not empty resultMsg}">
    <script type="text/javascript">
    if(window.location.href.indexOf('#forward')<0)//判断是否是回退
    	layer.msg("${resultMsg.msg}");
	</script>
</c:if>
	<header class="am-topbar admin-header">
		<div class="am-topbar-brand am-padding-left-0">
			<img src="assets/img/logo.png" style="height:50px;" class="am-fl am-block"> <small class="am-padding-left">后台管理</small>
		</div>
		<button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}">
			<span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span>
		</button>
		<div class="am-collapse am-topbar-collapse" id="topbar-collapse">
			<ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
				<li class="am-dropdown" data-am-dropdown><a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:void(0);">欢迎登录系统，${sessionScope.user.user.name} <span class="am-icon-caret-down"></span></a>
					<ul class="am-dropdown-content">
						<li><a href="management/backstageuser/edit/${sessionScope.user.user.backstageUserId}"><span class="am-icon-user"></span> 个人资料</a></li>
						<li><a href="management/backstageuser/updatePasswordUi"><span class="am-icon-cog"></span> 修改密码</a></li>
						<li><a href="management/logout"><span class="am-icon-power-off"></span> 退出</a></li>
					</ul>
				</li>
			</ul>
		</div>
	</header>

	<div class="am-cf admin-main">
		<!-- sidebar start -->
		<div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
			<div class="am-offcanvas-bar admin-offcanvas-bar">
				<ul class="am-list admin-sidebar-list">
					<!--  <li><a href="management/index"><span class="am-icon-home"></span> 首页</a></li>-->
					<li class="admin-parent"><a class="am-cf" data-am-collapse="{target: '#collapse-nav1'}"><span class="am-icon-star-o"></span> 会员管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
						<ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav1">
							<li><a href="management/vip/index" class="am-cf"><span class="am-icon-caret-right"></span> 会员档案管理</a></li>
							<li><a href="management/vip/balanceIndex"><span class="am-icon-caret-right"></span> 会员余额管理</a></li>
							<li><a href="management/vip/payFlowIndex"><span class="am-icon-caret-right"></span> 会员充值查询</a></li>
							<li><a href="management/vip/buyIndex"><span class="am-icon-caret-right"></span> 会员消费记录</a></li>
							<li><a href="management/vip/ruleIndex"><span class="am-icon-caret-right"></span> 会员充值规则</a></li>
							<li><a href="management/vip/infoIndex"><span class="am-icon-caret-right"></span> 短信验证</a></li>
						</ul>
					</li>
					<c:if test="${userType==1}">
					<li class="admin-parent"><a class="am-cf" data-am-collapse="{target: '#collapse-nav2'}"><span class="am-icon-cogs"></span> 系统管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
						<ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav2">
							<li><a href="management/sysconfig/index" class="am-cf"><span class="am-icon-caret-right"></span> 系统配置</a></li>
							<li><a href="management/rolecommisionrule/index"><span class="am-icon-caret-right"></span> 发型师提成规则配置</a></li>
							<li><a href="management/backstageuser/index"><span class="am-icon-caret-right"></span> 用户管理</a></li>
						</ul>
					</li>
					<li class="admin-parent"><a class="am-cf" data-am-collapse="{target: '#collapse-nav3'}"><span class="am-icon-institution"></span> 门店管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
						<ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav3">
							<li><a href="management/shop/index" class="am-cf"><span class="am-icon-caret-right"></span> 门店档案管理</a></li>
							<li><a href="management/shopGrade/index"><span class="am-icon-caret-right"></span> 门店等级管理</a></li>
						</ul>
					</li>
					</c:if>
					<li class="admin-parent"><a class="am-cf" data-am-collapse="{target: '#collapse-nav4'}"><span class="am-icon-users"></span> 员工管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
						<ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav4">
							<li><a href="management/employee/index" class="am-cf"><span class="am-icon-caret-right"></span> 员工档案管理</a></li>
							<li><a href="management/employee/targetindex" class="am-cf"><span class="am-icon-caret-right"></span> 员工月业绩设置</a></li>
							<li><a href="management/employee/worksindex" class="am-cf"><span class="am-icon-caret-right"></span> 作品库及休息日管理</a></li>
							<li><a href="management/employeeScore/index"><span class="am-icon-caret-right"></span> 员工服务评分</a></li>
							<li><a href="management/employee/appointmentindex"><span class="am-icon-caret-right"></span> 预约记录</a></li>
						</ul>
					</li>
					<c:if test="${userType==1}">
					<li class="admin-parent"><a class="am-cf" data-am-collapse="{target: '#collapse-nav5'}"><span class="am-icon-tag"></span> 角色头衔管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
						<ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav5">
							<li><a href="management/role/index" class="am-cf"><span class="am-icon-caret-right"></span> 角色管理</a></li>
							<li><a href="management/title/index"><span class="am-icon-caret-right"></span> 头衔管理</a></li>
						</ul>
					</li>
					</c:if>
					<li class="admin-parent"><a class="am-cf" data-am-collapse="{target: '#collapse-nav6'}"><span class="am-icon-file"></span> 订单管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
						<ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav6">
							<li><a href="management/orderinfo/index" class="am-cf"><span class="am-icon-caret-right"></span> 订单信息</a></li>
						</ul>
					</li>
					<c:if test="${userType==1}">
					<li class="admin-parent"><a class="am-cf" data-am-collapse="{target: '#collapse-nav7'}"><span class="am-icon-th-list"></span> 项目管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
						<ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav7">
							<li><a href="management/serviceitem/index" class="am-cf"><span class="am-icon-caret-right"></span> 服务项目管理</a></li>
							<li><a href="management/itemcategory/index" class="am-cf"><span class="am-icon-caret-right"></span> 服务项目类别管理</a></li>
							<li><a href="management/package/index"><span class="am-icon-caret-right"></span> 套餐管理</a></li>
							<li><a href="management/mdse/index"><span class="am-icon-caret-right"></span> 商品管理</a></li>
						</ul>
					</li>
					<li class="admin-parent"><a class="am-cf" data-am-collapse="{target: '#collapse-nav8'}"><span class="am-icon-credit-card"></span> 卡券管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
						<ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav8">
							<li><a href="management/coupon/index" class="am-cf"><span class="am-icon-caret-right"></span> 卡券信息维护</a></li>
							<li><a href="management/material/index" class="am-cf"><span class="am-icon-caret-right"></span> 素材信息维护</a></li>
						</ul>
					</li>
					</c:if>
					<li class="admin-parent"><a class="am-cf" data-am-collapse="{target: '#collapse-nav9'}"><span class="am-icon-bar-chart"></span> 报表统计 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
						<ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav9">
							<c:if test="${userType==1}">
							<li><a href="management/report/commissionindex"><span class="am-icon-caret-right"></span> 员工工资报表</a></li>
							</c:if>
							<li><a href="management/report/index"><span class="am-icon-caret-right"></span> 门店业绩报表</a></li>
							<li><a href="management/report/shopindex"><span class="am-icon-caret-right"></span> 汇总业绩报表</a></li>
							<li><a href="management/report/serviceindex"><span class="am-icon-caret-right"></span> 门店项目消费明细报表</a></li>
							<li><a href="management/report/outindex"><span class="am-icon-caret-right"></span> 门店外卖明细报表</a></li>
						</ul>
					</li>
				</ul>
				<div class="am-panel am-panel-default admin-sidebar-panel" style="visibility: hidden">
					<div class="am-panel-bd">
					</div>
				</div>
			</div>
		</div>
		<!-- sidebar end -->

		<!-- content start -->
		<div class="admin-content">

			<decorator:body />
		</div>
		<!-- content end -->

	</div>
<script type="text/javascript">
//修改浏览器历史的url地址
if(window.location.href.indexOf('index')>0&&window.location.href.indexOf('#forward')<0)
	window.history.replaceState('forward', null, window.location.href+'#forward');
</script>
	<a class="am-icon-btn am-icon-caret-right-list am-show-sm-only admin-menu"
		data-am-offcanvas="{target: '#admin-offcanvas'}"></a>

	<footer>
		<hr>
	</footer>
		<div class="am-modal am-modal-alert" tabindex="-1" id="my-alert">
	 <div class="am-modal-dialog">
	    <div class="am-modal-hd">订单评价</div>
	    <div class="am-modal-bd" id = "infoId">
	      
	    </div>
	    <div class="am-modal-footer">
	      <span class="am-modal-btn">确定</span>
	    </div>
	  </div>
	</div>
	
	<div class="am-modal am-modal-confirm" tabindex="-1" id="my-confirm">
	  <div class="am-modal-dialog">
	    <div class="am-modal-hd">选择现金支付方式</div>
	    <div class="am-modal-footer">
	      <input id="orderInfoId" type="hidden"/>
	      <span id="cashbtn" class="am-modal-btn" data-am-modal-cancel>现金</span>
	      <span id="posbtn" class="am-modal-btn" data-am-modal-confirm>POS</span>
	      <span id="zfbtn" class="am-modal-btn" data-am-modal-confirm>支付宝</span>
	      <span id="tgbtn" class="am-modal-btn" data-am-modal-confirm>团购</span>
	    </div>
	  </div>
	</div>
</body>
<decorator:head />
</html>
